// 引入快捷返回模块
const sendResponse = require('../tools/sendResponse');

module.exports = function(req, res){
	if (req.session.isLogin == true) {
		var result = {};
		result.id = req.session.id;
		result.account = req.session.account;
		result.name = req.session.name;
		result.headimg = req.session.headimg;
		sendResponse('ok','已是登录', result, res);
	} else {
		sendResponse('error','未登录', null, res);
	}

}